package com.yate.common.result;

import lombok.Getter;

/**
 * @ Tool：IntelliJ IDEA
 * @ Author：云生
 * @ Date：2024-11-29-1:39
 * @ Version：1.0
 * @ Description：统一返回结果状态信息类
 */
@Getter
public enum ResultCodeEnum {
    SUCCESS(200,"成功"),
    FAIL(201, "失败"),
    LOGIN_ERROR(204, "认证失败"),
    SERVICE_ERROR(2012, "服务异常"),
    DATA_ERROR(204, "数据异常"),

    LOGIN_AUTH(208, "未登陆"),
    PERMISSION(209, "没有权限")
    ;

    private Integer code;
    private String message;
    ResultCodeEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }


}
